package com.ssm.card.dao.model.equipment;



import com.jee.ssm.common.core.base.BaseModel;
import com.ssm.card.dao.model.building.Building;
import com.ssm.card.dao.model.residence.Residence;
import com.ssm.card.dao.model.unit.Unit;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 表名 d_equipment
 * @author GaoXiang
 * @version 1.0
 * Create time 2017/03/25
 */
public class Equipment extends BaseModel implements Serializable {
    /**
     * 主键
     * 表字段 : d_equipment.id
     * Create time 2017/03/25
     */
    private String id;

    /**
     * 编号
     * 表字段 : d_equipment.number
     * Create time 2017/03/25
     */
    private String number;

    /**
     * 设备类型
     * 表字段 : d_equipment.type
     * Create time 2017/03/25
     */
    private String type;

    /**
     * 小区ID
     * 表字段 : d_equipment.residence_id
     * Create time 2017/03/25
     */
    private String residenceId;

    /**
     * 楼栋ID
     * 表字段 : d_equipment.building_id
     * Create time 2017/03/25
     */
    private String buildingId;

    /**
     * 单元ID
     * 表字段 : d_equipment.unit_id
     * Create time 2017/03/25
     */
    private String unitId;

    /**
     * 注册时间
     * 表字段 : d_equipment.create_time
     * Create time 2017/03/25
     */
    private Date createTime;

    /**
     * 最后一次通讯的时间
     * 表字段 : d_equipment.end_time
     * Create time 2017/03/25
     */
    private Date endTime;

    /**
     * 户号,单元门禁不需要填写
     * 表字段 : d_equipment.room_id
     * Create time 2017/03/25
     */
    private String roomId;

    /**
     * MAC地址
     * 表字段 : d_equipment.mac
     * Create time 2017/03/25
     */
    private String mac;

    /**
     * 设备SIP
     * 表字段 : d_equipment.sip
     * Create time 2017/03/25
     */
    private String sip;

    /**
     * 设备密码
     * 表字段 : d_equipment.password
     * Create time 2017/03/25
     */
    private String password;

    /**
     * 锁信息
     * 表字段 : d_equipment.lock_info
     * Create time 2017/03/25
     */
    private String lockInfo;

    private  String serverIp;

    private Residence residence;

    private Building building;

    private Unit unit;

  /*  private  Room room;*/

    private String residenceName;
    private String buildingName;
    private String unitName;
    private String resCity;

    //实时在线状态
    private String online;
    private String version;

    /**
     * 构造方法
     */
    public Equipment(String id, String number, String type, String residenceId, String buildingId, String unitId, Date createTime, Date endTime, String roomId, String mac, String sip, String password, String lockInfo, String serverIp ) {
        this.id = id;
        this.number = number;
        this.type = type;
        this.residenceId = residenceId;
        this.buildingId = buildingId;
        this.unitId = unitId;
        this.createTime = createTime;
        this.endTime = endTime;
        this.roomId = roomId;
        this.mac = mac;
        this.sip = sip;
        this.password = password;
        this.lockInfo = lockInfo;
        this.serverIp=serverIp;
    }

    /**
     * 构造方法
     */
    public Equipment() {
        super();
    }

    /**
     * 主键
     * @return id 主键
     */
    public String getId() {
        return id;
    }

    /**
     * 主键
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 编号
     * @return number 编号
     */
    public String getNumber() {
        return number;
    }

    /**
     * 编号
     * @param number 编号
     */
    public void setNumber(String number) {
        this.number = number;
    }

    /**
     * 设备类型
     * @return type 设备类型
     */
    public String getType() {
        return type;
    }

    /**
     * 设备类型
     * @param type 设备类型
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 小区ID
     * @return residence_id 小区ID
     */
    public String getResidenceId() {
        return residenceId;
    }

    /**
     * 小区ID
     * @param residenceId 小区ID
     */
    public void setResidenceId(String residenceId) {
        this.residenceId = residenceId;
    }

    /**
     * 楼栋ID
     * @return building_id 楼栋ID
     */
    public String getBuildingId() {
        return buildingId;
    }

    /**
     * 楼栋ID
     * @param buildingId 楼栋ID
     */
    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    /**
     * 单元ID
     * @return unit_id 单元ID
     */
    public String getUnitId() {
        return unitId;
    }

    /**
     * 单元ID
     * @param unitId 单元ID
     */
    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    /**
     * 注册时间
     * @return create_time 注册时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 注册时间
     * @param createTime 注册时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 最后一次通讯的时间
     * @return end_time 最后一次通讯的时间
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * 最后一次通讯的时间
     * @param endTime 最后一次通讯的时间
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 户号,单元门禁不需要填写
     * @return room_id 户号,单元门禁不需要填写
     */
    public String getRoomId() {
        return roomId;
    }

    /**
     * 户号,单元门禁不需要填写
     * @param roomId 户号,单元门禁不需要填写
     */
    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    /**
     * MAC地址
     * @return mac MAC地址
     */
    public String getMac() {
        return mac;
    }

    /**
     * MAC地址
     * @param mac MAC地址
     */
    public void setMac(String mac) {
        this.mac = mac;
    }

    /**
     * 设备SIP
     * @return sip 设备SIP
     */
    public String getSip() {
        return sip;
    }

    /**
     * 设备SIP
     * @param sip 设备SIP
     */
    public void setSip(String sip) {
        this.sip = sip;
    }

    /**
     * 设备密码
     * @return password 设备密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设备密码
     * @param password 设备密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 锁信息
     * @return lock_info 锁信息
     */
    public String getLockInfo() {
        return lockInfo;
    }

    /**
     * 锁信息
     * @param lockInfo 锁信息
     */
    public void setLockInfo(String lockInfo) {
        this.lockInfo = lockInfo;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public Residence getResidence() {
        return residence;
    }

    public void setResidence(Residence residence) {
        this.residence = residence;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    public Unit getUnit() {
        return unit;
    }

    public void setUnit(Unit unit) {
        this.unit = unit;
    }

/*    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }*/

    public String getResidenceName() {
        return residenceName;
    }

    public void setResidenceName(String residenceName) {
        this.residenceName = residenceName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getResCity() {
        return resCity;
    }

    public void setResCity(String resCity) {
        this.resCity = resCity;
    }

    public String getOnline() {
        return online;
    }

    public void setOnline(String online) {
        this.online = online;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}